﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MongoDB.Bson;
using System.ComponentModel.DataAnnotations;

namespace MongoServices.Example.Models.ViewModels
{
	public class BlogCreateEditViewModel
	{
		[Required(ErrorMessage="Title is required.")]
		public string Title { get; set; }

		[Required(ErrorMessage = "Body is required.")]
		[DataType(DataType.MultilineText)]
		public string Body { get; set; }
		
		public string ReturnUrl { get; set; }
		public ObjectId Id { get; set; }
	}
}